#ifndef MESSAGESENDER_H
#define MESSAGESENDER_H

#include "bdzhlog_global.h"
#include <QObject>

class BDZHLOG_EXPORT MessageSender : public QObject
{
	Q_OBJECT

public:
	enum  InfoLevel { NORMAL_LEVEL, WARNING_LEVEL, CRITICAL_LEVEL };

	static MessageSender* instance();
	~MessageSender();

	void sendMessageInfo(const QString& context, const InfoLevel& level = NORMAL_LEVEL);

protected:
	MessageSender(QObject *parent = 0);
	static MessageSender* message;

signals:
	void newMessage(const QString& context);
};

#endif // MESSAGESENDER_H
